//=============================================================================
// SCAR MK17 Inventory class
//=============================================================================
class FnFalAW extends SRKFWeapon
	config(user);

function float GetAIRating()
{
	local Bot B;

	B = Bot(Instigator.Controller);
	if ( (B == None) || (B.Enemy == None) )
		return AIRating;

	return AIRating;
}

simulated function SetZoomBlendColor(Canvas c)
{
	local byte    val;
	local Color   clr;
	local Color   fog;

	clr.R = 255;
	clr.G = 255;
	clr.B = 255;
	clr.A = 255;

	if( Instigator.Region.Zone.bDistanceFog )
	{
		fog = Instigator.Region.Zone.DistanceFogColor;
		val = 0;
		val = Max( val, fog.R);
		val = Max( val, fog.G);
		val = Max( val, fog.B);
		if( val > 128 )
		{
			val -= 128;
			clr.R -= val;
			clr.G -= val;
			clr.B -= val;
		}
	}
	c.DrawColor = clr;
}

simulated function bool CanZoomNow()
{
	Return (!FireMode[0].bIsFiring && Instigator!=None && Instigator.Physics!=PHYS_Falling);
}

defaultproperties
{
     MagCapacity=20
     ReloadRate=2.550000
     ReloadAnim="Reload"
     ReloadAnimRate=1.000000
     WeaponReloadAnim="Reload_SCAR"
     Weight=5.000000
     bHasAimingMode=True
     IdleAimAnim="Idle_Iron"
     StandardDisplayFOV=55.000000
     bModeZeroCanDryFire=True
     SleeveNum=0
     TraderInfoTexture=Texture'KFWeaponPackTex.Icon.FalTrader'
     MeshRef="KFWeaponPackAnims.FalAcog"
     SelectSoundRef="KF_SCARSnd.SCAR_Select"
     HudImageRef="KFWeaponPackTex.Icon.FalIdle"
     SelectedHudImageRef="KFWeaponPackTex.Icon.Fal"
     PlayerIronSightFOV=45.000000
     ZoomedDisplayFOV=15.000000
     FireModeClass(0)=Class'PerksSimHostOrg.FnFalAWFire'
     FireModeClass(1)=Class'KFMod.NoFire'
     PutDownAnim="PutDown"
     SelectForce="SwitchToAssaultRifle"
     AIRating=0.550000
     CurrentRating=0.550000
     bShowChargingBar=True
     Description="An advanced tactical assault rifle. Fires in semi auto with great power and accuracy."
     EffectOffset=(X=100.000000,Y=25.000000,Z=-10.000000)
     DisplayFOV=55.000000
     Priority=15
     CustomCrosshair=11
     CustomCrossHairTextureName="Crosshairs.HUD.Crosshair_Cross5"
     InventoryGroup=4
     GroupOffset=7
     PickupClass=Class'PerksSimHostOrg.FnFalAWPickup'
     PlayerViewOffset=(X=5.571000,Y=11.300000,Z=-3.210000)
     BobDamping=6.000000
     AttachmentClass=Class'PerksSimHostOrg.FnFalWAttachment'
     IconCoords=(X1=245,Y1=39,X2=329,Y2=79)
     ItemName="FnFal ACOG"
     DrawScale=1.900000
     TransientSoundVolume=1.250000
}
